home *** CD-ROM | disk | FTP | other *** search
/ Hacker's Secrets 4 / Hacker's Secrets 4.iso / misc / pchack.txt < prev    next >
Text File  |  1996-08-05  |  33KB  |  867 lines

  1.  
  2.                      ==------------------==
  3.                        The PC Hacking FAQ
  4.                      ==------------------==
  5.  
  6.                       Version 2.0 7/10/96
  7.  
  8. ----------------------------------------------------------------
  9.            Written By Olcay Cirit, <olcay@libtech.com>
  10. ----------------------------------------------------------------
  11. DISCLAIMER: The author of  this  text  disclaims  all  liability 
  12. whatsoever  regarding  the use and/or misuse of  the  techniques
  13. outlined  here  or any damages incurred directly  or  indirectly
  14. thereof. 
  15.  
  16.  
  17.                        Table of Contents
  18.                      -=-=-=-=-=-=-=-=-=-=-
  19.                   X. Introduction
  20.                   1. Hardware and Firmware
  21.                       a. The BIOS
  22.                            Passwords
  23.                            Resetting the CMOS
  24.                       b. Floppy Locks
  25.                            Picking Them
  26.                            Buying them
  27.                       c. Last Resorts
  28.                            Hard Disk Extraction
  29.                   2. DOS, Windows, and Netware
  30.                       a. Getting access to DOS
  31.                            Boot from a floppy disk
  32.                            Bypass startup files
  33.                            Bypass DriveSpace
  34.                            Break out of Autoexec.bat
  35.                       b. Getting to DOS from Windows
  36.                            Password Protection
  37.                               Windows Login
  38.                               Third-Party Passwords
  39.                               Screensavers
  40.                            Windows-Based Security
  41.                               DOS Through OLE
  42.                               DOS Using Write 
  43.                               DOS Using Word
  44.                               DOS through MODE
  45.                               DOS through Windows Login
  46.                       c. Getting Past Netware
  47.                            Common Account Names
  48.                            Resetting Netware
  49.                   3. Building a SECURE system
  50.                       a. Understanding the Issues
  51.                            Potential "Hackers"
  52.                            Physical Security
  53.                            Software Security
  54.                            Passwords
  55.  
  56. ----------------------------------------------------------------
  57.  
  58. X. Introduction
  59.  
  60. This FAQ describes how to break-in to a PC (IBM-Compatible) 
  61. from the outside in, and how to bypass some common software-based
  62. security measures. The last section details how to secure your
  63. PC against most of such attacks.
  64.  
  65. If you would like to receive updates to this FAQ as soon as
  66. they come out, send me a message (olcay@libtech.com) and ask
  67. to be added to the mailing list.
  68.  
  69. Contributors to this FAQ: 
  70.  
  71.     KORO the Great  ksahin@scruznet.com
  72.     Neil Chou       Neil_Chou@ilanet.org
  73.     John Lundgren   jlundgre@deltanet.com
  74.     Bob             rsh@inforamp.net
  75.     Scorpion        favata@epix.net
  76.  
  77. Special Thanks to those really cool Netware Hackers! [Part 2c 
  78. is based on parts of the Netware Hacking FAQ]               
  79.  
  80. Why did I write this? Because there were just so many questions 
  81. on alt.2600 concerning 'How do I get past XXXXX security?' that 
  82. I got tired of answering each one individually. I'm also shocked
  83. at the fact that some people consider Windows 95/DOS to be
  84. secure. Expect to see this FAQ expand as I find more bugs and
  85. holes in security software. 
  86.  
  87. Many of these solutions assume you have physical access to the 
  88. PC. For example, you can't extract the hard disk or reset the 
  89. CMOS over a network, but you can do it if you have access to the 
  90. computer.
  91.  
  92. This FAQ was NOT written to help computer thieves, but rather to 
  93. increase awareness of backdoors and inefficiencies in security 
  94. programs. Another thing is 'the doofus factor': If you should 
  95. accidentally lock yourself out of your computer, you might find
  96. this FAQ to be a great help. I do *not* condone screwing up other
  97. people's computers.
  98.  
  99. I would like to note that few of these tricks are new. I simply 
  100. rounded up everything that I could find and what I could glean 
  101. from personal experience into an organized file.
  102.  
  103. If you have any questions or comments, feel free to contact me.
  104.  
  105.     Have Fun,
  106.  
  107.     Olcay Cirit, olcay@libtech.com
  108.     a.k.a, Deep Thought
  109.  
  110. ----------------------------------------------------------------
  111.  
  112. 1. Hardware and Firmware
  113.  
  114. 1a. The BIOS
  115.  
  116. Passwords
  117. =========
  118. The BIOS, short for Basic Input/Output Services, is the control 
  119. program of the PC. It is responsible for starting up your computer, 
  120. transferring control of the system to the operating system, and 
  121. for handling other low-level functions, such as disk access.
  122.  
  123. NOTE that the BIOS is not a software program, insofar as it is
  124. not purged from memory when you turn off the computer. It's 
  125. firmware, meaning it is permanently and unchangeably stored in
  126. the machine. FLASH BIOS Systems, such as those from Phoenix and
  127. AMI, allow you update the BIOS through software, but that's
  128. another FAQ.
  129.  
  130. A convenient little feature that most BIOS manufacturers include
  131. is a startup password. This prevents access to the system until
  132. you enter the correct password. 
  133.  
  134. If you can get access to the system after the password has been
  135. entered, then there is a software-based BIOS password extractor
  136. available from:
  137.  
  138. ftp://oak.oakland.edu/simtel/msdos/sysutil/amis2990.zip
  139.  
  140.  
  141. Resetting the CMOS
  142. ==================
  143. There is only one other way to get past the BIOS password. 
  144. It involves discharging the static memory (CMOS) used to store the 
  145. password and other system information. Once it is discharged, 
  146. however, you have to reset all the system settings by hand.
  147.  
  148. ****Follow these steps:
  149.  
  150.      1. Start up the computer
  151.         a. If the system allows it, enter the Setup Screen
  152.             (Usually by pressing F1, DEL or INS during 
  153.             the memory check)
  154.         b. Record all the Setup Information. Double Check.
  155.      2. Turn off the computer
  156.      3. Remove the casing, and put the computer on the ground in
  157.         such a way that you can see and access the side of 
  158.         the motherboard with the processor on it.
  159.      4. Look at the motherboard
  160.         a. If you can see a round, disc-like battery, then
  161.             remove it, and let the computer sit without 
  162.             the battery for 15-30 minutes. Put the battery 
  163.             back in.
  164.         b. If you have access to the circuit diagrams for the
  165.                         motherboard, look in there for the password or
  166.             CMOS jumper. Flip it on and off.
  167.         c. Look for a blue, soldered-in battery with a jumper
  168.             running off of it. This jumper is for connecting
  169.             an external battery. Pull it out for 15-30 min. 
  170.             to reset the CMOS.
  171.      5. Replace the computer casing.
  172.      6. Enter the Setup Screen, and set the Setup Information
  173.         back to the original values that you (hopefully)
  174.         recorded. 
  175.  
  176. If you were unable to record the setup info, then you'll just have 
  177. to set it up manually. Some newer Plug & Play BIOSes have an 
  178. autodetect feature that automatically sets-up the hard disk and 
  179. other items.
  180.  
  181. Again, I would like to mention that there are numerous password
  182. extractors available for free off the internet and on BBSes. Try 
  183. those first: they are much cleaner and easier-to-use.
  184.  
  185. ----------------------------------------------------------------
  186.  
  187. 1b. Floppy Locks
  188.  
  189. Floppy Locks are generally cheap plastic inserts that hook on 
  190. to the inside of the drive and lock it, thereby preventing you from
  191. using the floppy drive. The locks used are usually those little
  192. swivel locks used in computer casings to lock the keyboard.
  193.  
  194. There ARE some very secure locks, with *unique* keys. Such locks
  195. are not sold at your local computer store, and must be obtained
  196. directly from a factory in Nice, France (didn't get the name,
  197. though.). There is a distributor in Canada by the name of "Kappa
  198. Micro".
  199.  
  200. If the lock is of the swivel type, you can either pick it, or
  201. buy a key (they're all the same).
  202.  
  203. To pick it, you'll need a *thin* flathead screwdriver
  204. or a paperclip. To pick the lock, take the paperclip and insert it 
  205. into the little notch on the inside of the swivel lock. Now, pull to 
  206. the opposite side of the lock until the swivel is in the unlocked 
  207. position.
  208.  
  209. If you choose to buy a key, you can:
  210.  
  211.     A. Go to your local computer service center, and buy
  212.         one of these keys. (Very cheap. Often less than
  213.         $0.75)
  214.     B. Buy the same brand of floppy lock, and use the key
  215.         that comes with it.
  216.  
  217. ----------------------------------------------------------------
  218.  
  219. 1c. Last Resorts
  220.  
  221. If you are *REALLY* desperate to access this PC, then the following 
  222. *might* work:
  223.  
  224.     1. Remove the PC Casing
  225.     2. Extract the hard disk (By unscrewing and disconnecting)
  226.     3. Transfer it to another computer. (Make sure that it is
  227.         NOT set as the boot drive.)
  228.     4. Start up this computer, and access the
  229.         hard disk from there.
  230.  
  231. This will probably not work if an encrypted file system is in
  232. use. The only way to access such disks is to enter the password, 
  233. or figure out a way to decrypt it, so if you forget your password,
  234. you're hosed. :(
  235.  
  236. ----------------------------------------------------------------
  237.  
  238. 2. DOS, Windows, and Netware
  239.  
  240. 2a. Getting access to DOS
  241.  
  242. Some systems, are set up to boot directly to some sort of
  243. shell/security program, like Windows, or Windows 95. If you
  244. want to get access to a DOS prompt, you have some choices:
  245.  
  246.     A. Boot from a floppy disk
  247.     B. Bypass startup files
  248.     C. Bypassing DriveSpace
  249.     D. Break out of Autoexec.bat
  250.  
  251. ***Booting from a floppy requires you to create a system disk. 
  252. You can do this using the DOS command FORMAT A: /S which will 
  253. format a disk and place system files on it. Also, the Windows 
  254. format (In File Manager or Explorer) has an option allowing you 
  255. to create a system floppy.
  256.  
  257. Before you create a system disk, you must determine which
  258. floppy drive is used to boot. If the system has both a
  259. 1.2MB (5.25") Floppy Drive and a 1.44MB (3.5") Drive, it is likely
  260. that the boot drive is the 1.2 MB floppy drive. If the computer
  261. has only one floppy drive, it is quite safe to assume that it is
  262. the boot drive.
  263.  
  264. However, if you are unsure as to which drive is the boot drive,
  265. you can either find out by entering System Setup (as described
  266. in section 1) or by observing which floppy drive is read right
  267. before the operating system loads.
  268.  
  269. If the system is set to boot only from the hard disk, then you
  270. can refer to Section 1 on how to reset the CMOS.
  271.  
  272. Once you have a system disk, you place it in the floppy drive,
  273. and turn on or reset the computer. If you have done everything
  274. right, the computer will boot from the floppy drive and you will
  275. have access to a DOS prompt.
  276.  
  277. This technique, of course, can be prevented through the use of a
  278. floppy lock, and by setting the BIOS to boot only from the hard
  279. disk.
  280.  
  281. ***Bypassing startup files is quite simple, but only works on 
  282. versions of DOS 6.0 or better and Windows 95. When you turn on 
  283. the computer and you see the text:
  284.  
  285.     Starting MS-DOS ...
  286.  
  287. or
  288.     Starting PC-DOS ...
  289.  
  290. or 
  291.     Starting Windows 95 ...
  292.  
  293. Press and hold the SHIFT or F5 key IMMEDIATELY. This will bypass 
  294. the startup files (CONFIG.SYS and AUTOEXEC.BAT) as long as the 
  295. system administrator has not disabled this feature.
  296.  
  297. Additionally, you can press and hold F8 when the startup 
  298. text shows to enter the Boot menu. This lets you selectively
  299. disable certain commands, or bypass the startup files totally,
  300. among other things.
  301.  
  302. ***Bypassing DriveSpace works if compression software such as
  303. DriveSpace or DoubleSpace has been installed. If so, when
  304. the startup text displays, press and hold Ctrl+F5 or Ctrl+F8.
  305. This will load the system without loading the compression
  306. driver, which means you can't access the files on disk. 
  307.  
  308. HOWEVER, you *can* decompress the disk (DriveSpace only), as
  309. long as you have sufficient disk space or enough floppies. 
  310.  
  311. If all else fails, you can format it or take it to a Specialized
  312. Data Recovery service. They can probably recover the files by
  313. moving them to a larger hard disk and decompressing. 
  314.  
  315. ***Breaking out of AUTOEXEC.BAT is rather simple also. When the 
  316. computer starts up and the operating system starts loading, press 
  317. Ctrl+Break (Or Ctrl+C) repeatedly. When the AUTOEXEC.BAT executes, 
  318. this will terminate it and drop you to DOS. This will work unless
  319. the keyboard has been disabled, or is inactive during 
  320. initialization (Drivers can be loaded in CONFIG.SYS which
  321. temporarily disable the keyboard, and then re-enable it with a
  322. command at the end of AUTOEXEC.BAT)
  323.  
  324. ----------------------------------------------------------------
  325.  
  326. 2b. Getting to DOS from Windows
  327.  
  328. If the above tactics fail, and the machine automatically loads
  329. Windows, then you still have a very good chance of getting to DOS. 
  330. Since Windows by default gives you free access to DOS, there are 
  331. special security programs made specifically to prevent the user 
  332. from accessing it, among other things. Most of these programs
  333. can be bypassed.
  334.  
  335. Password Protection
  336. ===================
  337. If when Windows starts up you are presented with yet another 
  338. password dialog box, analyze the situation:
  339.  
  340. Windows Login
  341. -------------
  342. If this is the Primary Windows Login or a Network login,
  343. then you can get past it by pressing the Cancel button (No
  344. Joke!) to log on as the Default user. This is because the Login
  345. information is used primarily for desktop preferences and
  346. remote file sharing.
  347.  
  348. Login passwords are stored in .PWL files in the Windows
  349. directory. You can reset all accounts to no password by
  350. using the .PWL renaming technique described below. 
  351.  
  352. The filename of the .PWL file corresponds to the login name of
  353. that user. For example, Olcay.pwl contains the encrypted 
  354. passwords for the account "Olcay".
  355.  
  356. The password protection in Windows 95 uses a much stronger
  357. algorithm, but you can still bypass it by *carefully* moving 
  358. or renaming all .PWL files in the C:\Windows directory. The
  359. password filenames are also stored in the SYSTEM.INI file.
  360.  
  361. So, to disable passwords:
  362.  
  363.         CD \WINDOWS
  364.         REN *.PWL *.PW_
  365.  
  366. Similarly, to re-enable passwords:
  367.  
  368.         CD \WINDOWS
  369.         REN *.PW_ *.PWL
  370.  
  371.  
  372.  
  373. Third-Party Password
  374. --------------------
  375. If this is a third-party security program, such as the one 
  376. built-in to After Dark, try pressing Ctrl+Alt+Del when the 
  377. dialog is presented to you. Most security programs go out of 
  378. their way to be secure, and Windows 3.1 interprets this as not
  379. responding to the system, and thus will allow you close it.
  380. Windows 95 pops up a neat little dialog box that lets you
  381. terminate any running application. How convenient. :) Once you 
  382. subvert this, you can prevent it from bothering you again by 
  383. editing the LOAD= and RUN= sections in C:\WINDOWS\WIN.INI.
  384.  
  385.  
  386. Screensavers
  387. ------------
  388. The password protection built-in to the Windows 3.1 
  389. screensavers is extremely weak. You can bypass it by editing 
  390. CONTROL.INI and searching for the Password field. Delete the 
  391. junk that appears after the equal sign (This is an encrypted 
  392. password).
  393.  
  394. To disable Windows 95 passwords, right-click on the desktop
  395. and select Properties, choose the Screen Saver tab, and uncheck
  396. "Password protected".
  397.  
  398.  
  399.  
  400.  
  401. Windows-Based Security
  402. ======================
  403. If Windows starts up, and Program Manager loads, but the File 
  404. menu is disabled, and access to DOS has been cut off, or some 
  405. other oppressive security measures are in place, fear not. There 
  406. are ways around such programs, as shall be explained below:
  407.  
  408.  
  409. DOS through OLE
  410. ---------------
  411. OLE, for Object Linking and Embedding, was hailed as a great advance
  412. in the Windows Operating System by letting you embed or link objects
  413. (this includes Executables) in documents.
  414.  
  415. Scorpion pointed out that Object Packager, which lets you package
  416. embedded files with icons, could be used to access DOS (or run any
  417. program) from most OLE-enabled applications (Like Write, WordPad,
  418. Word, etc.) Based on this information, I found a similar hole that
  419. doesn't require Object Packager but still exploits OLE. Both of
  420. these work in Windows 3.x and up.
  421.  
  422. Using Object Packager:
  423.  
  424.     1. Start up Write or WordPad
  425.     2. Select "Object" from the "Insert" menu
  426.         a. The location of the Insert Object command
  427.             may vary. Look Around.
  428.     3. Choose Package from the list, and click OK
  429.     4. Select "Import" from the "File" menu
  430.     5. Enter C:\COMMAND.COM, and select OK
  431.     6. Select "Update" Under the "File" menu
  432.     7. Go back to your document, and double click
  433.         on the COMMAND.COM icon
  434.  
  435. Using Insert:
  436.  
  437.     1. Start up Write or WordPad
  438.     2. Select "Object" from the "Insert" menu
  439.         a. Again, the location of the Insert Object command
  440.             may vary. Look Around.
  441.     3. Select "Create from File"
  442.     4. Enter C:\COMMAND.COM as the filename
  443.     5. Click OK, go back to your document, and double click
  444.         on the COMMAND.COM icon
  445.     
  446.  
  447. DOS through Write
  448. -----------------
  449. This works by saving COMMAND.COM, the DOS executable, over WINHELP.EXE,
  450. the Windows Help program. Unfortunately, this tactic will not work with
  451. Windows 95. WordPad, the Word Processing Applet that comes with Windows
  452. 95, prevents the user from loading executable files.
  453.  
  454.  
  455.     1. Go into Accessories, and start up Write (*NOT* NOTEPAD!!)
  456.     2. Open C:\COMMAND.COM
  457.     3. A dialog box will pop up. Select "NO CONVERSION"
  458.     4. Select Save As...
  459.     5. Save it as C:\WINDOWS\WINHELP.EXE
  460.     6. If it asks if you want to overwrite WINHELP.EXE, choose
  461.         YES
  462.     7. Press F1. Normally, this loads Windows Help, but now it
  463.         will create a DOS prompt window.
  464.  
  465.  
  466.  
  467.  
  468.  
  469. DOS through Word
  470. ----------------
  471. Microsoft Word versions 6.0 and above have a built-in macro
  472. language called WordBasic. This example works by instructing
  473. WordBasic to open up a DOS window.
  474.  
  475. Most of the Macro languages of popular applications let you
  476. do something similar to this technique. Look around in the
  477. online help files.
  478.  
  479.     1. If Microsoft Word is installed, start it up.
  480.     2. From the Tools Menu, select Macro.
  481.     3. Type in a Macro name, and click "Create"
  482.     4. When the Macro window comes up, type in one of the
  483.         following depending on which Windows you are using:
  484.  
  485.           For Windows 3.1: Shell Environ$("COMSPEC") 
  486.           For Windows  95: Shell Environ$("COMMAND") 
  487.           For Windows  NT: Shell Environ$("CMD")
  488.  
  489.         If all else fails: Shell "C:\COMMAND.COM"
  490.  
  491.     5. Run the macro by pressing the little play button on the
  492.         macro toolbar. This will launch a DOS prompt.
  493.  
  494.  
  495.  
  496.  
  497.  
  498. DOS through MODE
  499. ----------------
  500. When Windows 95 Shuts Down and shows that dumb graphic, it's
  501. really just sitting on top of DOS. You can actually issue DOS
  502. commands (although the graphic will cover them) on the system 
  503. after shutdown!!!
  504.  
  505. A simple way to do this is to type:
  506.  
  507.         CLS
  508.  
  509. After the shutdown graphic shows. However, the text will be in 
  510. 40-column mode, which is hard to read, and incompatible with 
  511. some programs.
  512.  
  513. If you want to get a nice, clean DOS prompt, you can type:
  514.  
  515.     MODE CO80
  516.  
  517. This will reset the screen display to the normal (80-column, 
  518. 16 color) DOS display mode.
  519.  
  520. *MOST* Windows Security programs are based on a VxD (Virtual Device),
  521. which gives them unprecented power over the system while Windows
  522. is running. After shutdown, all Windows-based programs will be
  523. unloaded, leaving you free to explore using DOS.
  524.  
  525. For some unknown reason, this doesn't seem to work on some systems.
  526.  
  527.  
  528.  
  529.  
  530. DOS through Windows Login
  531. -------------------------
  532. When Windows 95 Starts up, some systems are set up to show
  533. a Windows/Network Login dialog box. You can press either
  534.  
  535.     Ctrl+Alt+Del
  536.  
  537. Which will let you Shut down the system (and apply the DOS
  538. THROUGH MODE technique), End any running tasks, etc. Or:
  539.  
  540.     Ctrl+Esc
  541.  
  542. Which, since the taskbar hasn't loaded, will launch Task 
  543. Manager. From this window you can end tasks, run programs,
  544. and shutdown the system (again, the DOS THROUGH MODE technique
  545. is applicable here). *All* programs are accessible from the run 
  546. menu, so you can run C:\COMMAND.COM to get access to DOS.
  547.  
  548. ----------------------------------------------------------------
  549.  
  550.  
  551.  
  552. 2c. Getting past NetWare
  553.  
  554. This section is based on excerpts from the Netware Hacking FAQ.
  555. Although Netware has met a general decline in use over the years,
  556. I still thought it would be proper to include this.
  557.  
  558. Common Account Names
  559. ====================
  560. Novell Netware has the following default accounts: SUPERVISOR, GUEST, 
  561. and Netware 4.x has ADMIN and USER_TEMPLATE as well. All of these have 
  562. no password set. Don't be a dummy, password protect SUPERVISOR and
  563. ADMIN immediately. Below is a listing of common default and built-in
  564. accounts that might be in your best interest to secure.
  565.  
  566. Account         Purpose
  567. -------         ---------------------------------------------------
  568. POST            Attaching to a second server for email
  569. MAIL
  570.  
  571. PRINT           Attaching to a second server for printing
  572. LASER
  573. HPLASER
  574. PRINTER
  575. LASERWRITER
  576.  
  577. ROUTER          Attaching an email router to the server
  578.  
  579. BACKUP          May have password/station restrictions (see below), 
  580. WANGTEK        used for backing up the server to a tape unit
  581.         attached to the workstation. For complete backups, 
  582.         Supervisor equivalence is required.
  583.  
  584. TEST            A test user account for temp use
  585.  
  586. ARCHIVIST       Palindrome default account for backup
  587.  
  588. CHEY_ARCHSVR    An account for Arcserve to login to the server from    
  589.         from the console for tape backup. Version 5.01g's
  590.         password was WONDERLAND.
  591.  
  592. GATEWAY         Attaching a gateway machine to the server
  593. GATE
  594.  
  595. FAX             Attaching a dedicated fax modem unit to the network
  596. FAXUSER         
  597. FAXWORKS        
  598.  
  599. WINDOWS_PASSTHRU Although not required, per the Microsoft Win95
  600.         Resource Kit, Ch. 9 pg. 292 and Ch. 11 pg. 401 you
  601.         need this for resource sharing without a password.
  602.  
  603.  
  604.  
  605. Resetting Netware
  606. =================
  607. When NetWare is first installed, the account SUPERVISOR and GUEST
  608. are left unprotected, that is, with no password. SUPERVISOR has
  609. free run of the system. You can do anything you want.
  610.  
  611. But how can you make the server think it has just been installed 
  612. without actually reinstalling the server and losing all data on 
  613. the disk? Simple. You just delete the files that contain the 
  614. security system! 
  615.  
  616. In Netware 2.x, all security information is stored in two files 
  617. (NET$BIND.SYS and NET$BVAL.SYS). Netware 3.x stores that information 
  618. in three files (NET$OBJ.SYS, NET$VAL.SYS and NET$PROP.SYS). The all 
  619. new Netware 4.x system stores all login names and passwords in five 
  620. different files (PARTITIO.NDS, BLOCK.NDS, ENTRY.NDS, VALUE.NDS 
  621. and UNINSTAL.NDS [This last file may not be there, don't worry]).
  622.  
  623. Although Novell did a very good job encrypting passwords, they left all 
  624. directory information easy to find and change if you can access the 
  625. server's disk directly, using common utilities like Norton's Disk Edit. 
  626.  
  627. Using this utility as an example, I'll give a step-by-step procedure 
  628. to make these files vanish. All you need is a bootable DOS disk,  
  629. Norton Utilities' Emergency Disk containing the DiskEdit program and 
  630. some time near the server.
  631.  
  632. 1. Boot the server and go to the DOS prompt. To do this, just let the 
  633.    network boot normally and then use the DOWN and EXIT commands. This 
  634.    procedure does not work on old Netware 2.x servers and in some 
  635.    installations where DOS has been removed from memory. In those cases, 
  636.    you'll have to use a DOS bootable disk.
  637.  
  638. 2. Run Norton's DiskEdit utility from drive A:
  639.  
  640. 3. Select "Tools" in the main menu and then select "Configuration". 
  641.    At the configuration window, uncheck the "Read-Only" checkbox. And 
  642.    be very careful with everything you type after this point.
  643.  
  644. 4. Select "Object" and then "Drive". At the window, select the C: drive 
  645.    and make sure you check the button "physical drive". After that, 
  646.    you'll be looking at your physical disk and you be able to see 
  647.    (and change) everything on it.
  648.  
  649. 5. Select "Tools" and then "Find". Here, you'll enter the name of the 
  650.    file you are trying to find. Use "NET$BIND" for Netware 2, 
  651.    "NET$PROP.SYS" for Netware 3 and "PARTITIO.NDS" for Netware 4. It is 
  652.    possible that you find these strings in a place that is not the 
  653.    Netware directory. If the file names are not all near each other and 
  654.    proportionaly separated by some unreadable codes (at least 32 bytes
  655.    between them), then you it's not the place we are looking for. In 
  656.    that case, you'll have to keep searching by selecting "Tools" and 
  657.    then "Find again". [In Netware 3.x, you can change all occurences of 
  658.    the bindery files and it should still work okay])
  659.  
  660. 6. You found the directory and you are ready to change it. Instead of 
  661.    deleting the files, you'll be renaming them. This will avoid problems 
  662.    with the directory structure (like lost FAT chains). Just type "OLD" 
  663.    over the existing "SYS" or "NDS" extension. Be extremely careful and 
  664.    don't change anything else.
  665.  
  666. 7. Select "Tools" and then "Find again". Since Netware store the 
  667.    directory information in two different places, you have to find the 
  668.    other copy and change it the same way. This will again prevent 
  669.    directory structure problems.
  670.  
  671. 8. Exit Norton Disk Edit and boot the server again. If you're running 
  672.    Netware 2 or 3, your server would be already accessible. Just go to
  673.    any station and log in  as user Supervisor. No password will be asked. 
  674.    If you're running Netware 4, there is one last step.
  675.  
  676. 9. Load Netware 4 install utility (just type LOAD INSTALL at the console 
  677.    prompt) and select the options to install the Directory Services. You 
  678.    be prompted for the Admin password while doing this. After that, you 
  679.    may go to any station and log in as user Admin, using the password 
  680.    that you have selected.
  681.  
  682. **NOTE: If Disk Edit is unavailable, any Disk Editing utility with 
  683.  searching capabilities will suffice.
  684.  
  685. ----------------------------------------------------------------
  686.  
  687.  
  688. 3. Building a SECURE System
  689.  
  690. 3a. Understanding the Issues
  691.  
  692. Potential "Hackers"
  693. ===================
  694. After reading this FAQ, you've probably revised your idea of a
  695. secure PC quite a bit. Truth be told, IBM didn't design the Personal 
  696. Computer with security in mind. Back in 1980, their main objective was 
  697. to get _something_ to market before Apple gobbled up all the market 
  698. share.
  699.  
  700. After awhile, security programs started to emerge that attempted
  701. to bridge this gap. These were quite popular, and were put into use
  702. by many companies to prevent 'curious' employees from messing with
  703. the computers.
  704.  
  705. However, ways to bypass these security programs were quickly found.
  706. As long as computers are designed for convenience, and with humans
  707. in mind, this will almost always happen.
  708.  
  709. So, who are potential "Hackers"? The answer is: Anyone. Experienced
  710. users especially, but even newbies sometimes find weak spots. This
  711. is not to say that everyone *is* a "hacker". (Note that I use quotes 
  712. because I don't believe in the popular usage of the term "Hacker". 
  713. The media is out of control: their usage of the word has conflated 
  714. Computer Gurus with Criminals in the minds of the people.)
  715.  
  716. As always, prevention is the best medicine. The following sections
  717. deal with how to secure your system, both through physical and
  718. software-based means.
  719.  
  720.  
  721.  
  722. Physical Security
  723. =================
  724. In the old days, back when computers filled multiple rooms, the 
  725. security of a system was basically all physical: Locks, security
  726. guards, etc. Now the emphasis has shifted away from physical security,
  727. and is leaning more towards software-based methods. However, 
  728. in some cases, a certain degree of physical security is in order.
  729.  
  730. ***If you want to prevent people from resetting your CMOS and 
  731. accessing the floppy drives, etc. you have to secure the system 
  732. itself. This can be done by having the computer in a locked room, 
  733. leaving only the screen and keyboard accessible. There are many 
  734. products which let you extend the reach of screen and keyboard cables. 
  735. Even some that let you control many different computers using one 
  736. screen. 
  737.  
  738. ***There are also security devices available made by companies such as
  739. Anchor Pad, Lucasey, and others that completely enclose the PC.  
  740. These are devices such as lockdown pads, cables for monitors, and 
  741. metal boxes. There are also devices that cover and lock the floppy 
  742. and CD-ROM slots.  
  743.  
  744. ***Computer locks which bind your computer to a desk are good for
  745. discouraging theft.
  746.  
  747. ***To protect your hard disk data, I would suggest investing in a
  748. removable media system that lets you "hot-swap" and lock hard disks. 
  749. The hard disk could then be easily removed (with the *unique* key)
  750. and stored in a safe to prevent theft of data. Drives such as
  751. the Zip (100MB), Ditto (800MB), and Jaz (1GB) are removable as well,
  752. but do not lock. 
  753.  
  754. Make sure that you test the computer immediately after these
  755. lockdown devices are installed. In some instances the stress induced
  756. on the casing by the devices can cause certain parts to malfunction.
  757.  
  758. ***You can buy devices that prevent the PC electrical cord from 
  759. being unplugged or turned on without a key.
  760.  
  761. ***Investing in a UPS (Uninterruptable Power Supply) System is worth
  762. the cost. These protect against power fluxes which can damage your
  763. system. In the case of a power out (or if someone trips over the cord),
  764. UPS systems give you 5 minutes of rechargeable battery power to save 
  765. work and perform an emergency shutdown.
  766.  
  767. ***As one last measure of security, it's always nice to invest in
  768. some insurance for your computer. It won't get your data back,
  769. but it *will* give you some peace of mind.
  770.  
  771.  
  772.  
  773. Software-Based Security
  774. =======================
  775. Below is a list of measures you can take to secure your system using
  776. software/firmware based methods. They are listed in order of 
  777. increasing security, so minimum security would be only implementing
  778. option #1, maximum security would be implementing #1-8. Keep in
  779. mind that implementing any of these without implementing every item 
  780. below it leaves possible entry points open.
  781.  
  782.     1. Set up a BIOS password for both the Setup screen *and*
  783.        access to the system.
  784.         a. Make sure the password is not easily guessable
  785.             (i.e., birthdate, name backwards, etc. are
  786.              easily guessed) See next section.
  787.         b. Make sure that the password is the maximum possible
  788.             number of characters supported by the BIOS.
  789.     2. Disable floppy booting from within the BIOS
  790.     3. Disable Bypass of startup files
  791.         a. This is done by adding the line:
  792.             SWITCHES=/F /N
  793.            to the CONFIG.SYS file.
  794.         b. Additionally, you might want to precede
  795.             all statements in the Autoexec.bat
  796.             with CTTY NUL, and then have CTTY CON
  797.             as the last line. This prevents breaking
  798.             out of autoexec.bat
  799.         c. If you use DriveSpace compression, add the
  800.             following line to your DRVSPACE.INI file:
  801.             SWITCHES=/F /N
  802.         d. Add the line:
  803.             BREAK OFF
  804.            This reduces the number of chances you have to
  805.            break out of AUTOEXEC.BAT, all though it doesn't
  806.            switch it off entirely
  807.     4. Set up a DOS-based Security TSR
  808.         a. Make sure you cannot access the floppy drive
  809.             without a password, and that it allows
  810.             for write-protection.
  811.         b. Make sure it allows for password protection.
  812.     5. Set up a Windows-Based Security program
  813.         a. Make sure you can control which features of
  814.             Windows you can limit or disable.
  815.         b. Make sure it allows for password protection.
  816.         6. Instate Windows Security Policies using Policy Editor
  817.                 (Described Later)
  818.         7. Install an encrypted filesystem program. (i.e., CryptDisk)
  819.         a. This will prevent access to the computer and
  820.             files on the hard disk unless the password
  821.             is entered. It will render your data 
  822.             unaccessible even if the hard disk is 
  823.             extracted from the system.
  824.         8. Delete the following DOS programs (or move them to
  825.             a floppy):
  826.         FORMAT
  827.         DELTREE
  828.         SUBST
  829.         JOIN
  830.         BACKUP
  831.         RESTORE
  832.         ATTRIB
  833.         MODE
  834.  
  835.  
  836. Passwords
  837. =========
  838. Passwords are generally the weakest link in the security chain.
  839. When choosing a password, remember these tips:
  840.  
  841. Do NOT choose something obvious: Swear words, your birthdate,
  842. topics pertaining to what you do and/or your interests are are
  843. examples of BAD passwords.
  844.  
  845. A Good Password is one that is totally random. To pick a password,
  846. try this: Grab a dictionary. Close your eyes, and flip to a 
  847. random page. With your eyes still closed, put your finger on a 
  848. random spot on this page. Remember the word, and do this again. 
  849. Combine the two words, and append a three-digit number to the end. 
  850. You also might want to intersperse non-alphanumeric characters 
  851. into the password in random ways, such as an odd dash or 
  852. apostrophe here and there.
  853.  
  854. Also, NEVER write your password down. Always keep it in your head.
  855. A simple Post-It note on your monitor can bring down all the
  856. security that you so meticulously set up!
  857.  
  858. A good password system hides the passwords from everyone, 
  859. including the system administrators. This means that the sys 
  860. admins cannot tell if the users are putting in weak passwords.
  861.  
  862. One final note: When designing a security system, be sure to take
  863. the user into account. If a system is of such high-grade security
  864. that it is a nuisance to use, people will always find the lazy 
  865. way to do it. (Post-it Notes...)
  866.                    
  867. ----------------------------------------------------------------